package cn.example.zjgsu.dao;

import cn.example.zjgsu.pojo.User;
import cn.example.zjgsu.pojo.UserBriefInformation;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    int deleteByPrimaryKey(String acount);

    int insert(User record);

    User selectByPrimaryKey(String acount);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    List<User> selectNationalRank();

    List<User> selectCityRank(int cityId);

    UserBriefInformation selectUserBriefByUserid(String userid);
}